
<%--
  Created by IntelliJ IDEA.
  User: 10495
  Date: 2022/4/4
  Time: 22:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>查询</title>
    <link href="../bootstrap/bootstrap.css">
</head>
<body>
    <form method="post" action="">
        <div class="form-group">
            <label for="medicine">药品名</label>
            <input type="text" class="form-control" id="medicine" placeholder="medicine" name="medicine">
        </div>


        <div class="control-group">
            <label class="control-label" for="startTime">起始时间</label>
            <div class="controls">
                <input type="datetime-local" name="startTime"
                       id="startTime" placeholder="StartTime">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="deadline">截止时间</label>
            <div class="controls">
                <input type="datetime-local" name="deadline"
                       id="deadline" placeholder="Deadline">
            </div>
        </div>

        <div class="form-group">
            <label for="place">地点</label>
            <input type="text" class="form-control" id="place" placeholder="Place" name="place">
        </div>

        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn">查询</button>
            </div>
        </div>
    </form>
<%--    ${recordsList}--%>
    <table class="table table-bordered">
        <tr>
            <th>#</th>
            <th>药品名</th>
            <th>剂量</th>
            <th>时间</th>
            <th>心情</th>
            <th>地点</th>
            <th>修改</th>
        </tr>
        <c:forEach items="${requestScope.recordsList}" var="records">
            <tr>
                <td>${records.recordId}</td>
                <td>${records.medicine}</td>
                <td>${records.dosage}</td>
                <td>${records.theTime}</td>
                <td>${records.feelings}</td>
                <td>${records.place}</td>
                <td><a href="">修改</a></td>
            </tr>
        </c:forEach>
        <%--<c:forEach items="${requestScope.pageBean.list.length}" var="manage">
            <tr>#</tr>
            <tr>${manage.medicine}</tr>
            <tr>${manage.countDosage}</tr>
            <tr>${manage.timeRange}</tr>
            <tr>${manage.allFeelings}</tr>
            <tr>${manage.allPlace}</tr>
        </c:forEach>--%>
    </table>
</body>
</html>
